@import "variables";
goods-topic {
  seed-cycle {
    .cycle-container {
      .title {
        display: flex;
        flex-direction: column-reverse;
        height: pxTorem(140);
        line-height: inherit;
        padding-right: pxTorem(70);
        padding-bottom: pxTorem(22);
        background: linear-gradient(transparent, rgba(0, 0, 0, .6));
        span {
          width: 100%;
        }
      }
      .cycle-pagination {
        left: 0;
        right: 0;
        bottom: pxTorem(12);
        justify-content: center;
        height: auto;
        .cycle-pagination-bullet {
          width: 4px;
          height: 4px; // border-radius: 1.5px;
          background-color: #fff;
          opacity: 1;
          &.active {
            background-color: color($h5, c1);
          }
        }
      }
    }
  }

  /*goods*/
  .goods-module+.no-title {
    margin-top: pxTorem(-10)!important;
  }
  .goods-module {
    margin-top: pxTorem(15); // padding-top: pxTorem(26);
    background-color: #fff;
    &:first-of-type {
      margin-top: pxTorem(20);
    }
    &.no-title {
      margin-top: 0;
      .goods-list {
        padding-top: 0;
      }
    }
    .module-title {
      padding-top: pxTorem(26);
      h1 {
        padding: 0 pxTorem(24);
        font-weight: 600;
        border-left: pxTorem(6) solid color($h5, c1);
        @include font-dpr(30px);
        color: color($h5, c2);
      }
    }
    .goods-list {
      display: flex;
      flex-wrap: wrap;
      padding: pxTorem(26) pxTorem(30) pxTorem(10) pxTorem(30);
    }
    .goods-card {
      margin-bottom: pxTorem(20);
      seed-img {
        width: 100%;
        height: 100%;
      }
      .title {
        margin-bottom: pxTorem(12);
        color: color($h5, c2);
      }
      .price-box {
        min-height: pxTorem(44);
      }
      .symbol {
        font-size: 12px; // vertical-align: text-top;
        color: color($h5, c15);
      }
      .price {
        font-weight: bold;
        font-size: standard($f, f2);
        color: color($h5, c15);
      }
      .free {
        @include font-dpr(27px);
      }
    }
  }
  .full,
  .half {
    //图文链接
    .image-container {
      position: relative;
      .cover {
        height: 100%;
      }
      .content {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        padding-top: pxTorem(22);
        padding-left: pxTorem(20);
        padding-bottom: pxTorem(22);
        border: none;
        background: linear-gradient(transparent, rgba(0, 0, 0, .6));
      }
      .title {
        height: auto;
        margin: 0;
        color: #fff;
      }
    }
  } //全宽
  .full {
    width: 100%; //商品
    flex-grow: 1;
    .goods-container {
      display: flex;
      align-items: center;
      text-align: left;
      .cover {
        width: 50%;
        padding-right: pxTorem(10);
      }
      .content {
        width: 50%;
        padding: 0 pxTorem(20);
        border: none;
      }
      .title {
        height: auto;
        @include multi-line-exllipsis(2);
      }
    } //图文链接
    .image-container {
      .content {
        padding-right: pxTorem(54);
      }
      img {
        height: pxTorem(370);
      }
      .title {
        min-height: auto;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
  } //半宽
  .half {
    width: 48.5%;
    .title {
      @include multi-line-exllipsis(2);
    }
    .container {
      height: 100%;
    }
    .goods-container {
      border: 1px solid color($h5, c9);
      .content {
        padding: pxTorem(16) pxTorem(36) pxTorem(20) pxTorem(20);
      }
      .title-box {
        min-height: pxTorem(86);
      }
    } //图文链接
    .image-container {
      .content {
        min-height: pxTorem(126);
        padding-right: pxTorem(36);
      }
    }
  }
  .media-query {
    @media screen and (min-width: 320px) {
      .half {
        .container {
          height: pxTorem(460);
        }
      }
    }
    @media screen and (min-width: 360px) and (max-width: 375px) {
      .half {
        .container {
          height: pxTorem(510);
        }
      }
    }
    @media screen and (min-width: 376px) and (max-width: 414px) {
      .half {
        .container {
          height: pxTorem(560);
        }
      }
    }
  }
}
